package cn.edu.lcu.cs.javateaching.basic.array;

/**
 * <p>多维数组演示</p>
 * <li>Java 的多维数组与 C 有很大的差别，注意区分</li>
 * 
 * @author Administrator
 *
 */
public class MultidimensionalArrayDemo {

	public static void main(String[] args) {
		Object[][] students = { { "张三", 23 }, { "lisi", 44 }, { "王五", 55 }, { "赵六", 66 }, { "刘七", 77 } };
		for (int i = 0; i < students.length; i++) {
			Object[] student = students[i];
			String name = (String) student[0];
			int score = (int) student[1];
			System.out.printf("%s\t考了\t%d\n", name, score);
		}
	}

}
